<?php
include_once 'includes\connect.php';

define("ACCESS", TRUE);

$pages = $_REQUEST["pages"];
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>INIT</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- Le styles -->
        <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
        <style type="text/css">
            body {
                padding-top: 60px;
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }

            @media (max-width: 980px) {
                /* Enable use of floated navbar text */
                .navbar-text.pull-right {
                    float: none;
                    padding-left: 5px;
                    padding-right: 5px;
                }
            }
        </style>
        <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <!--jquery ui-->
        <link type="text/css" href="css/custom-theme/jquery-ui-1.10.0.custom.css" rel="stylesheet" />
        <!--dialogs-->
        <link type="text/css" href="css/jquery.dialog2.css" rel="stylesheet" />
        <!--dataTable-->
        <style type="text/css">
            /*@import url("css/custom-theme/jquery-ui-1.10.0.custom.css");*/

            @import url("css/dataTables.bootstrap.css");
            /*@import url('css/jquery-dialog2/jquery.dialog2.css');*/
        </style>
        <!--<link type="text/css" href="css/dataTables.bootstrap.css" rel="stylesheet"  />-->

        <!-- Fav and touch icons -->
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
        <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
        <link rel="shortcut icon" href="../assets/ico/favicon.png">
    </head>

    <body>
        <script type="text/javascript" charset="utf-8" src="js/jquery-1.10.2.js"></script>

        <script type="text/javascript" charset="utf-8" src="bootstrap/js/bootstrap.js"></script>
        
        <!--validate-->
        <script type="text/javascript" charset="utf-8" src="js/jqBootstrapValidation.js"></script>

        <!--jquery ui-->
        <script type="text/javascript" charset="utf-8" src="js/jquery-ui-1.9.2.custom.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="js/jquery.ui.datepicker-th.js"></script>

        <!--dialogs-->
        <script type="text/javascript" charset="utf-8" src="js/jquery.dialog2.js"></script>
        <script type="text/javascript" charset="utf-8" src="js/jquery.dialog2.helpers.js"></script>

        <!--dataTable-->
        <script type="text/javascript" charset="utf-8" src="js/jquery.dataTables.js"></script>
        <script type="text/javascript" charset="utf-8" src="js/dataTables.bootstrap.js"></script>

        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#">INIT Project</a>
                    <div class="nav-collapse collapse">
                        <p class="navbar-text pull-right">
                            Logged in as <a href="#" class="navbar-link">Username</a>
                        </p>
                        <ul class="nav">
                            <li class="<?php echo ($pages=="" || $pages == "home")? "active":""; ?>"><a href="index.php?pages=home">Home</a></li>
                            <li class="<?php echo ($pages == "dialog")? "active":""; ?>"><a href="index.php?pages=dialog">Dialogs</a></li>
                            <li class="<?php echo ($pages == "datepicker")? "active":""; ?>"><a href="index.php?pages=datepicker">Datepicker</a></li>
                            <li class="<?php echo ($pages == "side_menu")? "active":""; ?>"><a href="index.php?pages=side_menu">Side Menu</a></li>
                            <li class="<?php echo ($pages == "pagination")? "active":""; ?>"><a href="index.php?pages=pagination">Pagination</a></li>
                            <li class="<?php echo ($pages == "validate")? "active":""; ?>"><a href="index.php?pages=validate">Validate</a></li>
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="span3">
                    <div class="well sidebar-nav">
                        <ul class="nav nav-list">
                            <li class="nav-header">Sidebar</li>
                            <li class="active"><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li class="nav-header">Sidebar</li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li class="nav-header">Sidebar</li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                            <li><a href="#">Link</a></li>
                        </ul>
                    </div><!--/.well -->
                </div><!--/span-->
                <div class="span9">
                    <?php
                    if ($pages) {
                        include "$pages.php";
                    } else {
                        include 'home.php';
                    }
                    ?>
                </div><!--/span-->
            </div><!--/row-->

            <hr>

            <footer>
                <p>&copy; Company 2013</p>
            </footer>

        </div><!--/.fluid-container-->

    </body>
</html>
